import { takeLatest, call, put } from "redux-saga/effects";
import { IN_CREMENT } from "../action/count";
import store from "../index";
import { countGet, countPost } from "../../api/count";

function* countSagaPost() {
  console.log("触发IN_CREMENT", store.getState());
  try {
    // let res1 = yield call(countGet)
    //   yield call(countPost)
  } catch (error) {}
}

// 触发action检测的函数
export default function* countSaga() {
  yield takeLatest(IN_CREMENT, countSagaPost);
}
